#include <stdio.h>
#include "adc.h"
#include <math.h> 

extern char buf[50];
extern float adv;

void Obtaining_adc_voltage(void)
{

	
	adv = ADCRead(3)*3.3/1023;
	adv = 51.884 * pow(2.71828,1.1173 * adv);
	sprintf(buf, " C3H8_con: %.2f ppm \r\n ", adv);
  //printf("%d.%d%d%dV  ", adv/1000, adv%1000/100, adv%1000%100/10, adv%1000%100%10);
}
